<?php
namespace app\home\validate;

use think\Validate;

class EquipmentWorkHoursCheck extends Validate
{
    protected $rule = [
        'eid' => 'require',
        'time' => 'require',
        'year' => 'require',
        'month' => 'require',
    ];

    protected $message = [
        'year.require' => '缺少更新条件',
        'month.require' => '缺少更新条件',
        'eid.require' => '缺少更新条件',
        'time.require' => '缺少更新时间',
    ];

    protected $scene = [
        'add' => ['time'],
        'get' => ['year','month'],
    ];
}
